#ifndef _CONNECTSQL_H
#define	_CONNECTSQL_H

using namespace System;
using namespace System::Data;
using namespace MySql::Data::MySqlClient;
using namespace System::Windows::Forms;

ref class ConnectSQL {
private:
	String^ addrServer;
	String^ user;
	String^ password;
	String^ base;
	MySqlConnection^ connexion;
	MySqlCommand^ command;
	MySqlDataReader^ reader;
public:
	ConnectSQL(String^, String^, String^, String^);
	~ConnectSQL(void);
	void getConnexion(void);
	MySqlDataReader^ getReader(void);
	void setReader(String^);
	void doInsertUpdate(String^);
	void closeConnexion(void);
};

#endif